package cn.tedu.boot52.mapper;

import cn.tedu.boot52.vo.Image;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface ImageMapper {
    @Insert("insert into image values(null,#{info},#{url})")
    void insert(Image image);

    @Select("select *from Image")
    List<Image> select();
}
